using System.ServiceModel;
using DemoLib.Shared.Contracts;
using DemoLib.Shared.Models;

namespace DemoLib.Service.Client.Clients
{
    public class AuthoServiceClient : ClientBase<IAuthoService>, IAuthoService
    {
        #region Implementation of IAuthoService

        public AuthContract<string> AuthoriseUser(AuthContract<LogOnModel> logon)
        {
            return Channel.AuthoriseUser(logon);
        }

        public void Logout(AuthContract<string> userToken)
        {
            Channel.Logout(userToken);
        }

        #endregion
    }
}